package org.eclipselabs.egf.portfolio.task.scala.test.shortint

import org.eclipse.core.runtime.IProgressMonitor
import org.eclipse.egf.core.EGFCorePlugin
import org.eclipse.egf.core.producer.InvocationException
import org.eclipse.egf.ftask.producer.context.ITaskProductionContext
import org.eclipse.egf.ftask.producer.invocation.ITaskProduction
import java.lang.Short

class ShortShow extends ITaskProduction{
	
	def preExecute(taskProductionContext:ITaskProductionContext , monitor:IProgressMonitor ) ={
	}
	
	def doExecute(taskProductionContext:ITaskProductionContext , monitor:IProgressMonitor )={
		var a = taskProductionContext.getInputValue("inA", classOf[Short])
		var b = taskProductionContext.getInputValue("inB", classOf[Short])
		var c = taskProductionContext.getInputValue("inC", classOf[Short])
		var d = taskProductionContext.getInputValue("inD", classOf[Short])
		var e = taskProductionContext.getInputValue("inE", classOf[Short])
		var f = taskProductionContext.getInputValue("inF", classOf[Short])
		EGFCorePlugin.getDefault().logInfo("a = " + a)
		EGFCorePlugin.getDefault().logInfo("b = " + b)
		EGFCorePlugin.getDefault().logInfo("c = " + c)
		EGFCorePlugin.getDefault().logInfo("d = " + d)
		EGFCorePlugin.getDefault().logInfo("e = " + e)
		EGFCorePlugin.getDefault().logInfo("f = " + f)
	}
	
	def postExecute(taskProductionContext:ITaskProductionContext , monitor:IProgressMonitor )={
	}
}